<?php

include_once ('../../__global.php');
class public_notice extends ml_controller 
{
    private $page = 1;
    private $pagesize = 10;
    
    
    public function init()
    {
        $this->set_access(self::ACCESS_SELF , self::NOACCESS_REDIRECT );
    }
    public function initParam()
    {
        $this->page = abs((int)$this->input('page' , 'g' , 1));
    }

    public function checkParam()
    {
        
        
    }
    public function main()
    {
        $uid = $this->__visitor['uid'];
        ml_tool_actionlog::add_other_action($this->__visitor['uid'] , ML_SINAACTCODE_VIEW_HOME_PUBNOTICE);
        
        
        if($this->page == 1)
        {
            $oRds = new ml_model_rdsNotice();
            $oRds->clean_one_field($uid , ml_model_rdsNotice::NTCTYPE_ADDSYSNOTICE  );
        }
        
        //获取用户名片信息        
        $obizUser = ml_biz_user_getinfo::get_instance();
        $obizUser->initUser($uid , $uid);
        $arr = $obizUser->getUserCard();
        $data = array();
        $data = array_merge($data,$arr);
        
        $aPubNotice = ml_factory::load_standard_conf('pubNotice');
        $data['pub_notice'] = $aPubNotice;
        
        $this->page_output('user::public_notice' , $data);
    }
    
    
}
new public_notice();